Module-level declarations

Types

Link copied to clipboard
entity player
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val USERNAME_REGEXP: text = "^[A-Za-z]{3,16}$"

Functions

Link copied to clipboard
function assert_username(username: text)
Link copied to clipboard
function ensure_player_asset_balance(account: account, name: text): balance
Link copied to clipboard
function get_player_by_id(account_id: byte_array): player
Link copied to clipboard
Link copied to clipboard
@extendable function init_player(player: player)
Link copied to clipboard
function player_asset_balance(account: account, name: text): balance?
Link copied to clipboard
function update_plot_owner(player: player)

Queries

Link copied to clipboard
@mount("player.find_by_account_id") query find_by_account_id(account_id: byte_array): player_info?
Link copied to clipboard
@mount("player.find_by_username") query find_by_username(username: text): player_info?
Link copied to clipboard
@mount("player.get_favorite_asset") query get_favorite_asset(account_id: byte_array): list<text>?
Link copied to clipboard
@mount("player.get_ft3_inventory") query get_ft3_inventory(account_id: byte_array): list<player_asset_info>
Link copied to clipboard
@mount("player.lookup_tokens") query lookup_tokens(account_id: byte_array): integer?
Link copied to clipboard
@mount("player.lookup_tokens_by_name") query lookup_tokens_by_name(account_id: byte_array, name: text): integer

Operations

Link copied to clipboard
@mount("player.add_favorite_asset") operation add_favorite_asset(item_id: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("player.new") operation new(username: text, eyes: integer, eyebrows: integer, mouth: integer, skin_color: integer, hair_color: integer, eye_color: integer, equippables: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("player.remove_favorite_asset") operation remove_favorite_asset(item_id: text, account_id: byte_array, auth_descriptor_id: byte_array)